package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.xml.crypto.Data;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zh
 * @since 2023-06-20
 */
@TableName("orders")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "OrderID", type = IdType.AUTO)
    private Integer orderID;

    @TableField(value = "ItemID")
    private Integer itemID;

    @TableField(value = "BuyerID")
    private Integer buyerID;

    @TableField(value = "SellerID")
    private Integer sellerID;

    @TableField(value = "OrderStatus")
    private String orderStatus;

    @TableField(value = "CreationTime")
    private LocalDateTime creationTime;

    @TableField("deleted")
    private Integer deleted;

    @TableField("payTime")
    private Date payTime;

    @TableField("AlipayNo")
    private String AlipayNo;

    @TableField("AddressID")
    private Integer addressID;

    @TableField("expireTime")
    private LocalDateTime expireTime;

    public Integer getAddressID() {
        return addressID;
    }

    public void setAddressID(Integer addressID) {
        this.addressID = addressID;
    }

    public Integer getOrderID() {
        return orderID;
    }

    public void setOrderID(Integer orderID) {
        this.orderID = orderID;
    }
    public Integer getItemID() {
        return itemID;
    }

    public void setItemID(Integer itemID) {
        this.itemID = itemID;
    }
    public Integer getBuyerID() {
        return buyerID;
    }

    public void setBuyerID(Integer buyerID) {
        this.buyerID = buyerID;
    }
    public Integer getSellerID() {
        return sellerID;
    }

    public void setSellerID(Integer sellerID) {
        this.sellerID = sellerID;
    }
    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }
    public LocalDateTime getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(LocalDateTime creationTime) {
        this.creationTime = creationTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getAlipayNo() {
        return AlipayNo;
    }

    public void setAlipayNo(String alipayNo) {
        AlipayNo = alipayNo;
    }

    public LocalDateTime getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(LocalDateTime expireTime) {
        this.expireTime = expireTime;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderID=" + orderID +
                ", itemID=" + itemID +
                ", buyerID=" + buyerID +
                ", sellerID=" + sellerID +
                ", orderStatus='" + orderStatus + '\'' +
                ", creationTime=" + creationTime +
                ", deleted=" + deleted +
                ", payTime=" + payTime +
                ", AlipayNo='" + AlipayNo + '\'' +
                ", addressID=" + addressID +
                ", expireTime=" + expireTime +
                '}';
    }

}
